package ${base.entity.packagePath};


import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import java.sql.Timestamp;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
*  ${table.comments}Entity
*
* @author ${base.author}
* @date ${base.createTime}
*/
@Table(name = "${table.tableName}")
@Data
@ToString
public class ${base.entity.className}{

        /**
        * ${table.pk.comments!}
        */
        @Id
        @Column(name = "${table.pk.columnName}")
        @GeneratedValue(generator = "JDBC")
        private ${table.pk.javaType} ${table.pk.attrName?uncap_first};


<#if table.columns?exists>
    <#list table.columns as column>
        /**
        * ${column.comments!}
        */
        @Column(name = "${column.columnName}")
        private ${column.javaType} ${column.attrName?uncap_first};

    </#list>
</#if>
}